<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>getElementsByName</title>
</head>
<body>
            <ul>
                <li>第一天</li>
                <li>第二天</li>
                <li>第99天</li>
                <li name="one">第100天</li>
            </ul>
            <script>
              console.log(document.getElementsByName('one'));    //获取的是li

            </script>
</body>
</html>